//
//  HeadView.h
//  ebook
//
//  Created by 吴超飞 on 16/3/8.
//  Copyright © 2016年 Moton. All rights reserved.
//

#import <UIKit/UIKit.h>

@class HeadView;

@protocol HeadViewDelegate <NSObject>

-(void)headView:(HeadView *)view loginBtnClick:(BOOL)login;
-(void)headView:(HeadView *)view blindGuestBtnClick:(UIButton *)btn;

@end

@interface HeadView : UIView

@property (weak, nonatomic) IBOutlet UIImageView *img_banner;
@property (weak, nonatomic) IBOutlet UIView *showView;

@property (weak, nonatomic) IBOutlet  UIButton *guestInfoBtn;
@property (weak, nonatomic) IBOutlet  UIButton *loginBtn;

@property (nonatomic,assign) BOOL isLogin;
@property (nonatomic,weak) id<HeadViewDelegate> delegate;

//scrollView 的回调
@property(nonatomic) float offsetY;

//根据当前是否登陆和是否游客登录设置视图状态
-(void)updateView;

@end
